package com.ruoyi.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author JiaWang
 * @date 2023/3/7 11:26
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_file_info")
public class SysFileInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;

    @ApiModelProperty(value = "文件名称")
    @Excel(name = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件路径")
    @Excel(name = "文件路径")
    private String filePath;

    /** 创建者 */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 更新者 */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;

    @ApiModelProperty(value = "表名")
    @Excel(name = "表名")
    private String tableName;

    @ApiModelProperty(value = "表id")
    @Excel(name = "表id")
    private Long tableId;

    @ApiModelProperty(value = "文件格式")
    @Excel(name = "文件格式")
    private String fileFormat;

}
